package com.sg.xy.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author huangbingyu
 * @date 2020-09-16
 * @description
 */
@FeignClient(value = "cloud-email-service", path = "/email")
public interface EmailFeign {
    @GetMapping("/{email}/{code}")
    public Boolean validate(@PathVariable String email, @PathVariable String code);
}
